import React, { Component } from 'react';
class State extends Component {
    constructor() {
        super();
        this.state={
            count:10
        }
    }
    render() { 
        return (<div className='demo'>
            <h3>1.定义状态</h3>
            count累加:{this.state.count}
        </div>  );
    }
}
 
export default State;